﻿using Sys.Core.Models.VO;
using MiniFox.Resources;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Sys.Core.Models.Dto
{
    [JsonObject]
    public class UserRoleSet
    {
        [JsonProperty("userId")]
        [Required(ErrorMessageResourceType = typeof(CommonMessages), ErrorMessageResourceName = "MSG_CommonRequired")]
        public string UserID { get; set; }

        [JsonProperty("roles")]
        [Required(ErrorMessageResourceType = typeof(CommonMessages), ErrorMessageResourceName = "MSG_CommonRequired")]
        public string[] Roles { get; set; }
    }
}
